﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

using ZhimeiSoft.CharmManager.DOL;
using ZhimeiSoft.CharmManager.Server.BLL.Interface;
using ZhimeiSoft.CharmManager.Server.DAL.Interface;
using ZhimeiSoft.CharmManager.Server.Factory;

namespace ZhimeiSoft.CharmManager.Server.BLL
{
    public class CustomerReturnVisitBLL: ICustomerReturnVisitBLL
    {
        ICustomerReturnVisitDAL visitDal;
        public CustomerReturnVisitBLL()
        {
            visitDal = BaseDalFactory.CreateCustomerReturnVisitDal();
        }

        public void InsertCustomerReturnVisit(DBEntityCustomerReturnVisit visit)
        {
            visitDal.InsertCustomerReturnVisit(visit);
        }

        public void UpdateCustomerReturnVisit(DBEntityCustomerReturnVisit visit)
        {
            visitDal.UpdateCustomerReturnVisit(visit);
        }

        public void DeleteCustomerReturnVisit(int visitID)
        {
            visitDal.DeleteCustomerReturnVisit(visitID);
        }

        public DataSet QueryCustomerReturnVisit(string sFilter)
        {
            return visitDal.QueryCustomerReturnVisit(sFilter);
        }

        
    }
}
